//
//  HHFrameSample.swift
//  HHSwiftuiPractice
//
//  Created by YL-Hong on 2023/9/27.
// frame 练习

import SwiftUI

struct HHFrameSample: View {
    var body: some View {
        Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
            .background(Color.red)
            .frame(width: 200, height: 200, alignment: .center)
            .background(Color.orange)
            .frame(maxWidth: .infinity)
            .background(Color.blue)
            .frame(maxHeight: 400,alignment: .top)
            .background(Color.brown)
            .frame(maxWidth: .infinity,maxHeight: .infinity,alignment: .top)
            .background(Color.purple)
        
    }
}

struct HHFrameSample_Previews: PreviewProvider {
    static var previews: some View {
        HHFrameSample()
    }
}
